Computational Physics: A Guide For Beginners Looking To Speed Up Their Computation - Second Edition by Muhammad Bilal Alli MInstP

Computational Physics: A Guide For Beginners Looking To Speed Up Their Computation - Second Edition by Muhammad Bilal Alli MInstP

Author:Muhammad Bilal Alli MInstP [Alli MInstP, Muhammad Bilal]
Language: eng
Format: azw3
Publisher: Muhammad Bilal Alli
Published: 2018-05-03T16:00:00+00:00


%IMPORTANT NOTE that apostrophes '' are used to denote characters or text

%if used around variables they will fail and be treated as a block of text

% instead of a variable

plot(x,car1,'k',x,car2,'b',x,car3,'r')

%% here we add a legend, the order of the input is important

legend('Car 1','Car 2','Car 3')

%%Now we label the axis and give this thing a title, the number next to

%%fontsize is the fontsize we set to

xlabel('Time','FontSize',28)

ylabel('Speed','FontSize',28)

title('My First Title','FontSize',28)

%%Note that plot as well as other MATLAB® functions are case sensitive, if

%%you spelt Plot instead of plot you would get an error message



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.